package c.e.a.b.b.h;

import android.accounts.Account;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import b.i.b.f;
import com.google.android.gms.common.Feature;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.GetServiceRequest;

public final class l implements Creator<GetServiceRequest> {
    public final Object createFromParcel(Parcel parcel) {
        Parcel parcel2 = parcel;
        int j1 = f.j1(parcel);
        String str = null;
        IBinder iBinder = str;
        Scope[] scopeArr = iBinder;
        Bundle bundle = scopeArr;
        Account account = bundle;
        Feature[] featureArr = account;
        Feature[] featureArr2 = featureArr;
        int i = 0;
        int i2 = 0;
        int i3 = 0;
        boolean z = false;
        while (parcel.dataPosition() < j1) {
            int readInt = parcel.readInt();
            switch (65535 & readInt) {
                case 1:
                    i = f.R0(parcel2, readInt);
                    break;
                case 2:
                    i2 = f.R0(parcel2, readInt);
                    break;
                case 3:
                    i3 = f.R0(parcel2, readInt);
                    break;
                case 4:
                    str = f.j0(parcel2, readInt);
                    break;
                case 5:
                    iBinder = f.Q0(parcel2, readInt);
                    break;
                case 6:
                    scopeArr = (Scope[]) f.l0(parcel2, readInt, Scope.CREATOR);
                    break;
                case 7:
                    bundle = f.d0(parcel2, readInt);
                    break;
                case 8:
                    account = (Account) f.h0(parcel2, readInt, Account.CREATOR);
                    break;
                case 10:
                    featureArr = (Feature[]) f.l0(parcel2, readInt, Feature.CREATOR);
                    break;
                case 11:
                    featureArr2 = (Feature[]) f.l0(parcel2, readInt, Feature.CREATOR);
                    break;
                case 12:
                    z = f.O0(parcel2, readInt);
                    break;
                default:
                    f.h1(parcel2, readInt);
                    break;
            }
        }
        f.q0(parcel2, j1);
        return new GetServiceRequest(i, i2, i3, str, iBinder, scopeArr, bundle, account, featureArr, featureArr2, z);
    }

    public final /* synthetic */ Object[] newArray(int i) {
        return new GetServiceRequest[i];
    }
}
